package com.devhelper.examples.gef.part;

import java.beans.PropertyChangeListener;

import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import com.devhelper.examples.gef.model.Node;

public abstract class ExAbstractEditPart extends AbstractGraphicalEditPart implements PropertyChangeListener {
    @Override
    public void activate() {
        super.activate();
        ((Node) getModel()).addPropertyChangeListener(this);
    }

    @Override
    public void deactivate() {
        super.deactivate();
        ((Node) getModel()).removePropertyChangeListener(this);
    }
}
